<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span th:errors="${userBean.*}"></span></span>
<form  action="update" th:object="${userBean}" method="post">
<table>
<tr>
  <td>ID:<input name="userId" type="text" th:value="${userBean.userId}"/></td>  
</tr>
<tr>
  <td> 用户名：<input name="userName" type="text"  th:value="${userBean.userName}"/></td>
</tr>
<tr>
   <td>密码：<input name="userPassword" type="password" /></td>
</tr>
<tr>
   <td>确认密码：<input name="rePassword" type="password" /></td>
</tr>
<tr>
   <td><button type="submit" name="xiugai">修改</button></td>
</tr>
</table>
</form>
</body>
</html>